package com.jc.subject.domin.convert;

import com.jc.subject.domin.entity.SubjectInfoBO;
import com.jc.subject.domin.entity.SubjectOptionBO;
import com.jc.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Description:
 * @Author: ASL_ly
 * @Package: com.jc.subject.domin.convert
 * @Project: jc-club
 * @Date: 2024/10/23  19:23
 */
@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo subjectBOToInfo(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> subjectInfoToBOList(List<SubjectInfo> subjectInfoList);

    SubjectInfoBO subjectInfoToBO(SubjectInfo subjectInfo, SubjectOptionBO subjectOptionBO);
}
